<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/popUP.js" %>"></script>
<logic:messagesPresent message="true"> 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgInfor" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
  <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgError" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgWarn" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgOk" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
</logic:messagesPresent> 
 
 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
   
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>ACTUALIZAR INFORMACION DE OPCION</STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
 <html:form  action="/admin/updateOption.do"  method="post" name="frmCreateOption" type="co.gov.medellin.ssti.sub.paoyer.administration.web.form.OptionForm">
 
 <input type="hidden" name="optionCode" value="<bean:write name="optionSelected" property="optionCode" />" />
 <input type="hidden" name="programCode" value="<bean:write name="optionSelected" property="programCode" />"/>
 <input type="hidden" name="code" value='<bean:write name="optionSelected" property="code" />' />
 
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
		<table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
     <tr>
    	<td width="28%">&nbsp;</td>
			<td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="46%"> 
              <input type="text" size= "40" class="form"  name="name" value='<bean:write name="optionSelected" property="name" />'/>
           </td>
			<td width="3%">&nbsp;</td>
     </tr>
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Parametros</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%"><input type="text" size= "40" class="form"  name="parameters" value='<bean:write name="optionSelected" property="parameters" />'/></td>
		  <td width="3%">&nbsp;</td>
		 </tr>
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Tipo de opcion</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%">
        <html:select styleClass="form" property="optionType" style="width:215" > 
          <logic:equal name="optionSelected" property="optionType" value="M">
              <html:option value = "M" >Menu</html:option>
              <html:option value = "O" >Compatible ORACLE</html:option>
               <html:option value = "N" >No Compatible ORACLE</html:option>
              <html:option value = "W" >Web</html:option>
              <html:option value = "I" >Web interna</html:option>
          </logic:equal>
          <logic:equal name="optionSelected" property="optionType" value="O">
              <html:option value = "O" >Compatible ORACLE</html:option>
              <html:option value = "M" >Menu</html:option>
              <html:option value = "N" >No Compatible ORACLE</html:option>
              <html:option value = "W" >Web</html:option>
              <html:option value = "I" >Web interna</html:option>
          </logic:equal>
          <logic:equal name="optionSelected" property="optionType" value="N">
              <html:option value = "N" >No Compatible ORACLE</html:option>
              <html:option value = "O" >Compatible ORACLE</html:option>
              <html:option value = "M" >Menu</html:option>
              <html:option value = "W" >Web</html:option>
              <html:option value = "I" >Web interna</html:option>
          </logic:equal>  
          <logic:equal name="optionSelected" property="optionType" value="W">
              <html:option value = "W" >Web</html:option>
              <html:option value = "N" >No Compatible ORACLE</html:option>
              <html:option value = "O" >Compatible ORACLE</html:option>
              <html:option value = "M" >Menu</html:option>
              <html:option value = "I" >Web interna</html:option>
          </logic:equal>
          <logic:equal name="optionSelected" property="optionType" value="I">
              <html:option value = "I" >Web interna</html:option>
              <html:option value = "W" >Web</html:option>
              <html:option value = "N" >No Compatible ORACLE</html:option>
              <html:option value = "O" >Compatible ORACLE</html:option>
              <html:option value = "M" >Menu</html:option>
          </logic:equal>
          
         </html:select>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>
	 <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Orden</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%">
        <input type="text" size= "40" class="form"  name="order" value='<bean:write name="optionSelected" property="order" />'/>
       </td>
		  <td width="3%">&nbsp;</td>
     </tr>
	 
	<tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Opcion padre</strong> (*)&nbsp;&nbsp; 
          </td>
		  <td width="46%">
		    <input type="text" class="form" size="40" name="optionName" value="<bean:write name="optionSelected" property="fatherOptionName" />" readonly="readonly" />&nbsp;&nbsp; &nbsp;&nbsp; <a href='javascript:vpopUsers("<%=request.getContextPath()+"/admin/selectOption.do"%>");'><img border="0" src="<%= request.getContextPath() + "/images/Add.gif" %>" alt="Seleccionar" width="16" height="16" /></a>
		  </td>
		  <td width="3%">&nbsp;</td>
  </tr>
  <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>P&aacute;gina asociada</strong>&nbsp;&nbsp; 
          </td>
		  <td width="46%">
		    <input type="text" class="form" size="40" name="programName" readonly="readonly" value="<bean:write name="optionSelected" property="parentProgramName" />"/>&nbsp;&nbsp; &nbsp;&nbsp; <a href='javascript:vpopUsers("<%=request.getContextPath()+"/admin/selectProgram.do"%>");'><img border="0" src="<%= request.getContextPath() + "/images/Add.gif" %>" alt="Seleccionar" width="16" height="16" /></a>
		  </td>
		  <td width="3%">&nbsp;</td>
  </tr>
	 
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td width="23%" valign="top" class="celdatabla"><strong>Descripcion</strong> 
            (*)&nbsp;&nbsp; </td>
		  <td width="46%"> <textarea  name="description" cols="35" rows="5" styleClass="form"><bean:write name="optionSelected" property="description" /></textarea></td>
		  <td width="3%">&nbsp;</td>
	</tr>
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>

<p align="center">
  <html:link page="/admin/findOption.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

